﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="comlogin.ascx.cs" Inherits="comloginl" %>
<asp:Panel ID="plogin" runat="server">
    <div class="loginContent">
        <%--用户名--%> 
        <div class="login">
            <span>邮 箱 ：</span>
            <asp:TextBox ID="txtname" runat="server" Width="118px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server"
                ControlToValidate="txtname" Display="Dynamic" ErrorMessage="*"
                ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <%--密码--%>
        <div class="login">
            <span>密 码 ：</span>
            <asp:TextBox ID="txtpwd" runat="server"
                TextMode="Password" Width="118px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server"
                ControlToValidate="txtpwd" Display="Dynamic"
                ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <%--验证--%>
        <div class="login">
            <span>验证码：</span>
            <asp:TextBox ID="txtcode" runat="server" Height="15px" Width="60px"></asp:TextBox>
            <asp:Image ID="Image1" runat="server" Height="21px" Width="61px" ImageUrl="~/ValidateCode.aspx" />
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtcode" Display="Dynamic" ErrorMessage="*" ValidationGroup="1"></asp:RequiredFieldValidator>
        </div>
        <div style="text-align: center;">
            <a href="comlogin.aspx" style="color: #339900; text-decoration: none; font-size: 12px">验证码看不清，更换一张</a>
        </div>
        <div style="text-align: center; margin-top: 5px;">
            <asp:ImageButton ID="ImageButton1" ImageUrl="images/mainpic/Button_Login.gif" runat="server" OnClick="ImageButton1_Click" ValidationGroup="1" />
            <a href="javascript:show();">
                <asp:ImageButton ID="ImageButton2" runat="server" ImageUrl="images/mainpic/Button_Reg.gif" ValidationGroup="0" PostBackUrl="~/ComRegiste.aspx" />
            </a>
        </div>
        <div style="float: right; margin-right: 15px;">
            <img src="images/mainpic/Icon1.gif" />
            <a href="javascript:alert('请拨打客服电话：88888888');" style="font-size: 13px; text-decoration: none;">忘记密码</a>
        </div>
    </div>
</asp:Panel>
<asp:Panel ID="plcuss" runat="server" Visible="False">
    <asp:FormView ID="FormView1" runat="server" DataKeyNames="cpid"
        DataSourceID="SqlDataSource2" EmptyDataText="无" HorizontalAlign="Center"
        Width="200px" Height="65px">
        <EditItemTemplate>
            cpid:
            <asp:Label ID="cpidLabel1" runat="server" Text='<%# Eval("cpid") %>' />
            <br />
            cpname:
            <asp:TextBox ID="cpnameTextBox" runat="server" Text='<%# Bind("cpname") %>' />
            <br />
            cppwd:
            <asp:TextBox ID="cppwdTextBox" runat="server" Text='<%# Bind("cppwd") %>' />
            <br />
            cpadd:
            <asp:TextBox ID="cpaddTextBox" runat="server" Text='<%# Bind("cpadd") %>' />
            <br />
            cpsynopsis:
            <asp:TextBox ID="cpsynopsisTextBox" runat="server"
                Text='<%# Bind("cpsynopsis") %>' />
            <br />
            cptel:
            <asp:TextBox ID="cptelTextBox" runat="server" Text='<%# Bind("cptel") %>' />
            <br />
            cpmail:
            <asp:TextBox ID="cpmailTextBox" runat="server" Text='<%# Bind("cpmail") %>' />
            <br />
            cpclass:
            <asp:TextBox ID="cpclassTextBox" runat="server" Text='<%# Bind("cpclass") %>' />
            <br />
            cplogo:
            <asp:TextBox ID="cplogoTextBox" runat="server" Text='<%# Bind("cplogo") %>' />
            <br />
            cpscale:
            <asp:TextBox ID="cpscaleTextBox" runat="server" Text='<%# Bind("cpscale") %>' />
            <br />
            cptime:
            <asp:TextBox ID="cptimeTextBox" runat="server" Text='<%# Bind("cptime") %>' />
            <br />
            cphref:
            <asp:TextBox ID="cphrefTextBox" runat="server" Text='<%# Bind("cphref") %>' />
            <br />
            <asp:LinkButton ID="UpdateButton" runat="server" CausesValidation="True"
                CommandName="Update" Text="更新" />
            &nbsp;<asp:LinkButton ID="UpdateCancelButton" runat="server"
                CausesValidation="False" CommandName="Cancel" Text="取消" />
        </EditItemTemplate>
        <InsertItemTemplate>
            cpname:
            <asp:TextBox ID="cpnameTextBox0" runat="server" Text='<%# Bind("cpname") %>' />
            <br />
            cppwd:
            <asp:TextBox ID="cppwdTextBox0" runat="server" Text='<%# Bind("cppwd") %>' />
            <br />
            cpadd:
            <asp:TextBox ID="cpaddTextBox0" runat="server" Text='<%# Bind("cpadd") %>' />
            <br />
            cpsynopsis:
            <asp:TextBox ID="cpsynopsisTextBox0" runat="server"
                Text='<%# Bind("cpsynopsis") %>' />
            <br />
            cptel:
            <asp:TextBox ID="cptelTextBox0" runat="server" Text='<%# Bind("cptel") %>' />
            <br />
            cpmail:
            <asp:TextBox ID="cpmailTextBox0" runat="server" Text='<%# Bind("cpmail") %>' />
            <br />
            cpclass:
            <asp:TextBox ID="cpclassTextBox0" runat="server"
                Text='<%# Bind("cpclass") %>' />
            <br />
            cplogo:
            <asp:TextBox ID="cplogoTextBox0" runat="server" Text='<%# Bind("cplogo") %>' />
            <br />
            cpscale:
            <asp:TextBox ID="cpscaleTextBox0" runat="server"
                Text='<%# Bind("cpscale") %>' />
            <br />
            cptime:
            <asp:TextBox ID="cptimeTextBox0" runat="server" Text='<%# Bind("cptime") %>' />
            <br />
            cphref:
            <asp:TextBox ID="cphrefTextBox0" runat="server" Text='<%# Bind("cphref") %>' />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True"
                CommandName="Insert" Text="插入" />
            &nbsp;<asp:LinkButton ID="InsertCancelButton" runat="server"
                CausesValidation="False" CommandName="Cancel" Text="取消" />
        </InsertItemTemplate>
        <ItemTemplate>
            <table style="height: 65px;width: 200px;">
                <tr>
                    <td colspan="2" style="height: 25px;text-align: center; text-align: left">
                        <asp:Label ID="cpnameLabel" runat="server" Font-Bold="True" ForeColor="Black"
                            Text='<%# Bind("cpname") %>' Font-Size="16px" Height="20px" />&nbsp;</td>
                </tr>
                <tr>
                    <td class="style2" style="text-align: center;">
                        <table style="width: 309px">
                            <tr>
                                <td style="width: 80px; height: 25px; text-align: right">企业类型：</td>
                                <td style="height: 25px; text-align: left">
                                    <asp:Label ID="Label2" runat="server" Text='<%# Eval("cpclass") %>' ForeColor="#004000"></asp:Label></td>
                            </tr>
                            <tr>
                                <td style="width: 80px; height: 25px; text-align: right">企业规模：</td>
                                <td style="height: 25px; text-align: left">
                                    <asp:Label ID="cpscaleLabel" runat="server" Text='<%# Bind("cpscale") %>' ForeColor="#004000" /></td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </ItemTemplate>
    </asp:FormView>
    <asp:SqlDataSource ID="SqlDataSource2" runat="server"
        ConnectionString="<%$ ConnectionStrings:DB_CCXYRCConnectionString %>"
        SelectCommand="SELECT * FROM [tb_company] WHERE ([cpid] = @cpid)">
        <SelectParameters>
            <asp:SessionParameter Name="cpid" SessionField="com" Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Panel>
<asp:Label ID="Label5" runat="server"></asp:Label>
